dhcpv4: rename handle_addrlist_change()
authorDavid Härdeman <[email protected]>
Wed, 24 Sep 2025 12:53:54 +0000 (14:53 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 3 Oct 2025 10:53:30 +0000 (12:53 +0200)
Rename handle_addrlist_change() to dhcpv4_addrlist_change() for more
consistency with the other function names.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/264
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c

index d1d433750620c54fd74acb7a6492e30601f65f24..b63104c865e4994ab178251efdcde40fe82c9e21 100644 (file)
@@ -1155,7 +1155,7 @@ out:
        return ret;
 }
 
-static void handle_addrlist_change(struct interface *iface)
+static void dhcpv4_addrlist_change(struct interface *iface)
 {
        struct odhcpd_ipaddr ip;
        struct odhcpd_ref_ip *a;
@@ -1208,7 +1208,7 @@ static void dhcpv4_netevent_cb(unsigned long event, struct netevent_handler_info
                dhcpv4_setup_interface(iface, true);
                break;
        case NETEV_ADDRLIST_CHANGE:
-               handle_addrlist_change(iface);
+               dhcpv4_addrlist_change(iface);
                break;
        default:
                break;